-- GENERATED SPELL FOR [Conquest Hold Marauder] --


function spell0_27424(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_27424', 30250, 1)
end

function spell1_27424(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27424', 579, 1)
end

function spell2_27424(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27424', 568, 1)
end

function Sorts_27424(pUnit, Event)
local choix_sorts_27424 = math.random(0, 2)
if choix_sorts_27424 == 0 then
pUnit:RegisterEvent('spell0_27424', 1, 1)
end
if choix_sorts_27424 == 1 then
pUnit:RegisterEvent('spell1_27424', 1, 1)
end
if choix_sorts_27424 == 2 then
pUnit:RegisterEvent('spell2_27424', 1, 1)
end
end

function mob27424_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27424', math.random(1500, 3000), 1)
end

function mob27424_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27424_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27424_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27424, 1, 'mob27424_Action')
RegisterUnitEvent(27424, 2, 'mob27424_Leave')
RegisterUnitEvent(27424, 3, 'mob27424_Kill')
RegisterUnitEvent(27424, 4, 'mob27424_Die')
